﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkOne.Domain.Model;

namespace WorkOne.Domain
{
    public class GoodsDbContext : DbContext
    {
        public GoodsDbContext(DbContextOptions<GoodsDbContext> options) : base(options)
        {
        }

        public DbSet<Goods> Goods { get; set; }
        public DbSet<GoodsCart> goodsCarts { get; set; }
        public DbSet<Shopcar> shopcars { get; set; }
        public DbSet<User> users { get; set; }
        public DbSet<Token> tokens { get; set; }

        public DbSet<Order> orders { get; set; }

        public DbSet<OrderGoods> orderGoods { get; set; }

        public DbSet<Address> addresses { get; set; }
    }
}